package com.flitsneak.designpatterns.behavioralpatterns.memento;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/7/19 13:58
 * @description
 */
public class LickDogFeiFei {
    private String event;
    private String effect;

    public LickDogFeiFei(String event,String effect) {
        this.event = event;
        this.effect =effect;
    }

    public String getEvent() {
        return event;
    }

    public String getEffect() {
        return effect;
    }

    public void setEffect(String effect) {
        this.effect = effect;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public LickDogMemento createMemento() {
        return new LickDogMemento(this.event,this.effect);
    }

    public void restoreMemento(LickDogMemento lickDogMemento) {
        this.event = lickDogMemento.getEvent();
        this.effect = lickDogMemento.getEffect();
    }

}
